package com.atguigu.gmall.order.service;

import com.atguigu.gmall.model.enums.ProcessStatus;
import com.atguigu.gmall.model.order.OrderDetail;
import com.atguigu.gmall.model.order.OrderInfo;

import java.util.List;
import java.util.Map;

/**
 * @author gsy
 * @date 2021年09月10日21:31
 * Description
 */
public interface OrderInfoService {
    boolean hasStock(OrderDetail orderDetail);

    Long saveOrderInfo(OrderInfo orderInfo);

    void cancelOrder(Long orderId);

    OrderInfo getOrderInfo(Long orderId);

    void updateOrderStatusPaid(Long orderId, ProcessStatus name);

    List<OrderInfo> orderSplit(Long orderId, String wareSkuMap);

    //组装消息
    Map initWareOrder(Long orderId);

    //组装消息
    Map initWareOrder(OrderInfo orderInfo);
}
